#pragma once
#include "Obj/XOBJ.h"
namespace LTGame
{
	class Wingman:
		public XOBJ
	{
	public:
		Wingman(void);
		~Wingman(void);
		void paint(void);
		void logic();
		static Wingman* getInstance();
		void Wingman_Creat_Single(XOBJ* obj);
		void Wingman_Update_Pos(void);
		void Wingman_Set_ActionID(int actionID);
		bool Wingman_LevelUp_Single(void);
	public:
		short aniID;
		short* timer;
		short action;
		short particleID;
		short cur_x;
		short cur_y;
		short level;
		short wingmanIndex;
		byte isDoLogic;

		XOBJ* owner;
		static Wingman* curWingman;

	private:
		void Wingman_Creat(XOBJ*obj);
		void Wingman_Paint();
		void Wingman_Logic();
		static const short MAX_Wingman_LV = 2;
	};
}